package com.diaohw.module.auth.controller;

import com.diaohw.module.auth.service.LogoutService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logout")
@Tag(name = "登出")
public class LogoutController {
    @Resource
    private LogoutService service;

    @Operation(summary = "退出")
    @RequestMapping
    public boolean logout() {
        return service.logout();
    }

}
